<?php
/*
 * @Description: 
 * @Author: xiao li
 * @Date: 2021-07-04 00:12:07
 * @LastEditTime: 2021-08-23 17:26:57
 * @LastEditors: xiao li
 */
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */


$banner = <<<BANNER
{"title":"轮播图","type":"banner","icon":"iconlunbo","isDelete":true,"addNumber":9999,"attr":[{"title":"选择模板","type":"ChooseModule","name":"bannerName","data":[{"title":"通屏轮播","name":"banner-tongping","img":"http://lbqny.migugu.com/admin/diy/banner-tongping.png"}]},{"title":"轮播图高度","type":"InputNumber","name":"style"},{"title":"图片列表","type":"ImageLink","name":"bannerList","isDraggable":true,"isDelete":true,"data":[{"title":"图片","type":"UploadImage","name":"img","desc":"750*400"},{"title":"链接类型","type":"Select","name":"linkType","data":[{"label":"系统内部页面","value":4},{"label":"其他小程序","value":2},{"label":"跳转网页","value":3},{"label":"拨打电话","value":1}]},{"title":"链接地址","type":"Tag","name":"link"}]},{"title":"添加模板","type":"Add","name":"addMouduleName","addNumber":10,"data":[{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}]}],"data":{"style":{"number":400,"min":200,"max":800,"label":"请输入","height":400,"whiteSpace":0,"wingBlank":0},"bannerName":"banner-tongping","addMouduleName":"bannerList","bannerList":[{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}]}}
BANNER;

$navigation = <<<NAV
{"title":"导航","type":"column","icon":"icondaohang1","isDelete":true,"addNumber":9999,"attr":[{"title":"多少行","type":"InputNumber","name":"row"},{"title":"每行多少列","type":"InputNumber","name":"col"},{"title":"图片列表","type":"ImageLink","name":"columnList","isDraggable":true,"isDelete":true,"data":[{"title":"按钮文字","type":"Input","name":"title"},{"title":"图片","type":"UploadImage","name":"img","desc":"100*100"},{"title":"链接类型","type":"Select","name":"linkType","data":[{"label":"系统内部页面","value":4},{"label":"其他小程序","value":2},{"label":"跳转网页","value":3},{"label":"拨打电话","value":1}]},{"title":"链接地址","type":"Tag","name":"link"}]},{"title":"添加模板","type":"Add","name":"addMouduleName","addNumber":16,"data":[{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}]}],"data":{"row":{"number":2,"min":1,"max":2},"col":{"number":4,"min":4,"max":5},"style":{"fontColor":"#666","background":"#ffffff","whiteSpace":30,"wingBlank":0},"addMouduleName":"columnList","columnList":[{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"title":"按钮文字","link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}]}}
NAV;

$adver = <<<ADVER
{"title":"广告图","type":"imagewindow","icon":"iconguanggaotu","isDelete":true,"addNumber":9999,"attr":[{"title":"选择模板","type":"ChooseModule","name":"imagewindowName","data":[{"title":"1*1","name":"imagewindow-col-1","img":"http://lbqny.migugu.com/admin/diy/imagewindow-col-1.png"},{"title":"1*2","name":"imagewindow-col-2","img":"http://lbqny.migugu.com/admin/diy/imagewindow-col-2.png"},{"title":"1*3","name":"imagewindow-col-3","img":"http://lbqny.migugu.com/admin/diy/imagewindow-col-3.png"}]},{"title":"图片列表","type":"ImageLink","name":"imagewindowList","isDraggable":true,"isDelete":true,"data":[{"title":"图片","type":"UploadImage","name":"img","desc":"348*158"},{"title":"链接类型","type":"Select","name":"linkType","data":[{"label":"系统内部页面","value":4},{"label":"其他小程序","value":2},{"label":"跳转网页","value":3},{"label":"拨打电话","value":1}]},{"title":"链接地址","type":"Tag","name":"link"}]},{"title":"添加模板","type":"Add","name":"addMouduleName","addNumber":3,"data":[{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}]}],"data":{"row":{"number":2},"style":{"wingBlank":16,"whiteSpace":16,"backgroundColor":"#fff"},"imagewindowName":"imagewindow-col-1","addMouduleName":"imagewindowList","imagewindowList":[{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]},{"link":[{"title":""}],"linkType": 4,"img":[{"url":"http://lbqny.migugu.com/admin/diy/default.png"}]}]}}
ADVER;


$coupon = <<<COUPON

{"model_name_key":"shop","re_name_key":["shop","restaurant"],"title":"卡券","type":"couponList","icon":"iconCouponList","isDelete":true,"addNumber":1,"attr":[{"title":"模板名称","type":"Input","name":"title","maxLength":10},{"title":"卡券样式","type":"Radio","name":"type","data":[{"label":1,"title":"弹窗样式"},{"label":2,"title":"列表样式"}]}],"data":{"title":"领取卡券","type":1},"dataList":[]}

COUPON;

$gzh = <<<GZH

 {"title":"公众号组件","type":"official","icon":"iconOfficial","isDelete":true,"addNumber":1,"attr":[{"title":"是否显示","type":"Switch","name":"isShow"}],"data":{"title":"公众号组件","isShow":true}}

GZH;


return [

    [
        "title" => "基础组件",
        'type' => 'base',
        'sort' => '999',
        "data" => [
            json_decode($banner, true),
            json_decode($navigation, true),
            json_decode($adver, true),
        ]
    ],
    [
        "title" => "运营组件",
        'type' => 'operate',
        'sort' => '888',
        "data" => [
            json_decode($coupon, true),
//            json_decode($gzh, true),
        ]
    ]

];